// src/pages/task/schedule/types.ts - 任务计划类型定义
export interface ScheduleItem {
  id: number;
  name: string;
  description: string | null;
  task_type: string;
  crontab: string | null;
  last_run_at: string | null;
  interval: string; // 后端返回的是字符串格式的JSON
  args: string; // 后端返回的是字符串格式的JSON数组
  kwargs: string; // 后端返回的是字符串格式的JSON对象
  code: string;
  enable: boolean;
  permission_type: number;
  is_deleted: boolean;
}

export interface ScheduleCreateForm {
  name: string;
  description?: string;
  task_type: string;
  crontab?: string;
  code: string;
  interval?: string;
  args: string;
  kwargs: string;
}